﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="memberNew.ascx.cs" Inherits="uicontrol_memberNew" %>
<asp:SqlDataSource ID="vitri" runat="server" ConnectionString="<%$ ConnectionStrings:evaConn %>"
    SelectCommand="SELECT MaViTri, TenViTri FROM ViTri ORDER BY TenViTri" DataSourceMode="DataSet"
    InsertCommand="INSERT INTO Vitri (TenViTri) VALUES (@TenViTri)">
        <InsertParameters>
            <asp:ControlParameter ControlID="txtChucDanh" Name="TenViTri" PropertyName="Text" />
        </InsertParameters>
    </asp:SqlDataSource>
<asp:SqlDataSource ID="hoidong" runat="server" ConnectionString="<%$ ConnectionStrings:evaConn %>"
    SelectCommand="SELECT MaHoiDong, TenHoiDong FROM HoiDong WHERE (Status = 1) ORDER BY TenHoiDong">
</asp:SqlDataSource>
<asp:SqlDataSource ID="doanhnghiep" runat="server" ConnectionString="<%$ ConnectionStrings:evaConn %>"
    SelectCommand="SELECT MaDoanhNghiep, TenDoanhNghiep FROM DoanhNghiep WHERE (Status = 1) ORDER BY TenDoanhNghiep">
</asp:SqlDataSource>
<table>
    <tr>
        <td>
            <asp:Label ID="Label1" runat="server" CssClass="Label" Text="Tên thành viên"></asp:Label>
            <asp:Label ID="Label6" runat="server" CssClass="LabelRequire" Text="*"></asp:Label></td>
        <td>
            <asp:TextBox ID="txtTenTV" runat="server" CssClass="Textbox" MaxLength="255"></asp:TextBox></td>
        <td>
            <asp:RequiredFieldValidator ID="rfvTenHD" runat="server" ControlToValidate="txtTenTV"
                CssClass="ValidateLabel" Display="None" ErrorMessage="Chưa điền thông tin"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td style="height: 25px">
            <asp:Label ID="Label2" runat="server" CssClass="Label" Text="Chức danh"></asp:Label></td>
        <td style="height: 25px">
            <asp:DropDownList ID="ddlChucDanh" runat="server" CssClass="DropdownList" DataSourceID="vitri" DataTextField="TenViTri" DataValueField="MaViTri">
            </asp:DropDownList>
            <asp:TextBox ID="txtChucDanh" runat="server" CssClass="Textbox" MaxLength="255" Visible="False"></asp:TextBox></td>
        <td style="height: 25px"><asp:Button ID="btnKhac" runat="server" CausesValidation="False" CssClass="Button"
                OnClick="btnKhac_Click" Text="Khác" ToolTip="Chức danh khác không có trong danh sách" />
            <asp:Button ID="btnThem" runat="server" CausesValidation="False" CssClass="Button"
                OnClick="btnThem_Click" Text="Thêm chức danh" ToolTip="Chức danh khác không có trong danh sách" Visible="False" Width="120px" /></td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label3" runat="server" CssClass="Label" Text="Tên Hội đồng"></asp:Label></td>
        <td>
            <asp:DropDownList ID="ddlTenHD" runat="server" CssClass="DropdownList" DataSourceID="hoidong" DataTextField="TenHoiDong" DataValueField="MaHoiDong">
            </asp:DropDownList></td>
        <td>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label4" runat="server" CssClass="Label" Text="Tên Doanh nghiệp"></asp:Label></td>
        <td>
            <asp:DropDownList ID="ddlDN" runat="server" CssClass="DropdownList" DataSourceID="doanhnghiep" DataTextField="TenDoanhNghiep" DataValueField="MaDoanhNghiep">
            </asp:DropDownList></td>
        <td>
        </td>
    </tr>
    <tr>
        <td>
        </td>
        <td>
            &nbsp;</td>
        <td>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Button ID="btnNew" runat="server" CssClass="Button" OnClick="btnNew_Click" Text="Tạo mới" /></td>
        <td>
            <asp:Button ID="btnCancel" runat="server" CausesValidation="False" CssClass="Button"
                OnClick="btnCancel_Click" Text="Làm lại" /></td>
        <td>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:Label ID="lblNotify" runat="server" CssClass="LabelResult"></asp:Label></td>
        <td colspan="1">
        </td>
    </tr>
</table>